package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料信息管理对象 tb_materials
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class Materials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料唯一标识 */
    private Long materialId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 物料类型 */
    @Excel(name = "物料类型")
    private String materialType;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 库存量 */
    @Excel(name = "库存量")
    private BigDecimal stockQuantity;

    /** 安全库存量 */
    @Excel(name = "安全库存量")
    private BigDecimal safetyStockQuantity;

    /** 供应商ID，外键关联供应商表 */
    @Excel(name = "供应商ID，外键关联供应商表")
    private Long supplierId;

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStockQuantity(BigDecimal stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public BigDecimal getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setSafetyStockQuantity(BigDecimal safetyStockQuantity) 
    {
        this.safetyStockQuantity = safetyStockQuantity;
    }

    public BigDecimal getSafetyStockQuantity() 
    {
        return safetyStockQuantity;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("materialType", getMaterialType())
            .append("unit", getUnit())
            .append("stockQuantity", getStockQuantity())
            .append("safetyStockQuantity", getSafetyStockQuantity())
            .append("supplierId", getSupplierId())
            .toString();
    }
}
